import { lazy } from "react";
const xhfOpenResultPage = lazy(() =>
	import("@views/viewXHF/xhfOpenResult/xhfOpenResult")
);
const xhfOpenFailPage = lazy(() =>
	import("@views/viewXHF/xhfOpenResult/openFail")
);
const xhfOpenSuccessPage = lazy(() =>
	import("@views/viewXHF/xhfOpenResult/openSuccess")
);
const xhfActiveSuccessPage = lazy(() =>
	import("@views/viewXHF/xhfOpenResult/activeSuccess")
);
const xhfFacilitySuccessPage = lazy(() =>
	import("@views/viewXHF/xhfOpenResult/xhfFacilitySuccess")
);
const BillHome = lazy(() => import("@views/viewXHF/bill/billHome/index"));
const BillList = lazy(() => import("@views/viewXHF/bill/billList/index"));
const BillHistory = lazy(() => import("@views/viewXHF/bill/billHistory/index"));
const BillDetail = lazy(() => import("@views/viewXHF/bill/billDetail/index"));
const BillMonth = lazy(() => import("@views/viewXHF/bill/billMonth/index"));
const MyCoupons = lazy(() => import("@views/viewXHF/coupon/myCoupons/index"));
const ActivateCoupon = lazy(() =>
	import("@views/viewXHF/coupon/activateCoupon/index")
);
const CouponHistory = lazy(() =>
	import("@views/viewXHF/coupon/couponHistory/index")
);
const Cashback = lazy(() =>
	import("@views/viewXHF/cashback/cashbackList/index")
);
const CouponRule = lazy(() => import("@views/viewXHF/coupon/rule/index"));
const creditScorePage = lazy(() => import("@views/viewXHF/creditScore/index"));
const xhfSetPasswordPage = lazy(() =>
	import("@views/viewXHF/setPayPassword/SetPayPassword")
);
const xhfInviteHome = lazy(() => import("@views/viewXHF/invite/inviteHome")); //邀请首页
const inviteQrCode = lazy(() => import("@/views/viewXHF/invite/inviteQrCode")); //邀请二维码
const inviteRecord = lazy(() => import("@/views/viewXHF/invite/inviteRecord")); //邀请记录
const rewardRecord = lazy(() => import("@/views/viewXHF/invite/rewardRecord")); //奖励记录
const inviteRule = lazy(() => import("@/views/viewXHF/invite/inviteRule")); //邀请规则
//------------小辉付--router--start----------
const xhfRepaymentPage = lazy(() =>
	import("@views/viewXHF/bill/repayment/xhfRepayment")
);
const xhfCommonProblemPage = lazy(() =>
	import("@views/viewXHF/commonProblem/index")
); //小辉付常见问题
const newbornZonePage = lazy(() => import("@views/viewXHF/newbornZone/index")); //小辉付新人专区
const reductionPage = lazy(() => import("@views/viewXHF/reduction/index")); //小辉付立减99元
//小辉付中间页首页-暂时解决外部自定义跳转
const XhfIndex = lazy(() => import("@views/viewXHF/XhfIndex"));
//小辉付首页-已授信
const XhfHomeCredit = lazy(() => import("@views/viewXHF/XhfHomeCredit"));
//小辉付首页-未授信
const XhfHomeNoCredit = lazy(() => import("@views/viewXHF/XhfHomeNoCredit"));
//小辉付首页-授信中
const XhfHomeCrediting = lazy(() => import("@views/viewXHF/XhfHomeCrediting"));
//------------小辉付--router--end------------

//小辉付612产品线
const certification612 = lazy(() =>
	import("@views/viewXHF/creditExtension/612/certification")
);
const faceRecognition612 = lazy(() =>
	import("@views/viewXHF/creditExtension/612/faceRecognition")
);
const livenessRet612 = lazy(() =>
	import("@views/viewXHF/creditExtension/612/livenessRet")
);
const openPayResults612 = lazy(() =>
	import("@views/viewXHF/creditExtension/612/openPayResults")
);

//小辉付613产品线
const certification613 = lazy(() =>
	import("@views/viewXHF/creditExtension/613/certification")
);
const faceRecognition613 = lazy(() =>
	import("@views/viewXHF/creditExtension/613/faceRecognition")
);
//小辉付616产品线
const creditExtension_616_ThreeElements = lazy(() =>
	import("@views/viewXHF/creditExtension/616/ThreeElements")
);
const creditExtension_616_RiskControlAudit = lazy(() =>
	import("@views/viewXHF/creditExtension/616/RiskControlAudit")
);
const creditExtension_616_Activation = lazy(() =>
	import("@views/viewXHF/creditExtension/616/Activation")
);

//双12活动页
const dTwelveActivities = lazy(() =>
	import("@views/viewXHF/dTwelveActivities")
);

//小辉付新授信流程
//二要素
const xhfCreditTwoElement = lazy(() =>
	import("@views/viewXHF/credit/twoElementPage")
);
//三要素
const xhfCreditThreeElement = lazy(() =>
	import("@views/viewXHF/credit/threeElementPage")
);
//四要素
const xhfCreditFourElement = lazy(() =>
	import("@views/viewXHF/credit/fourElementPage")
);
//人脸
const xhfCreditLiveness = lazy(() =>
	import("@views/viewXHF/credit/livenessPage")
);
//征信授权书
const xhfCreditZxAgrement = lazy(() =>
	import("@views/viewXHF/credit/certificateOfAuthorization/index")
);

const payResult = lazy(() => import("@views/viewXHF/payResult")); //支付结果
const jumpMiddlePage = lazy(() => import("@views/viewXHF/jumpMiddlePage")); //跳转小微贷中间页

const xhfRouters = [
	{
		pathName: "/xhfIndex",
		component: XhfIndex,
		exact: false,
		cacheRouter: true,
		cacheKey: "XhfIndex"
	},
	{
		pathName: "/xhfHomeCredit",
		component: XhfHomeCredit,
		exact: false,
		cacheRouter: true,
		cacheKey: "XhfHomeCredit"
	},
	{
		pathName: "/xhfHomeNoCredit",
		component: XhfHomeNoCredit,
		exact: false,
		cacheRouter: true,
		cacheKey: "XhfHomeNoCredit"
	},
	{
		pathName: "/xhfHomeCrediting",
		component: XhfHomeCrediting,
		exact: false,
		cacheRouter: true,
		cacheKey: "XhfHomeCrediting"
	},
	{
		pathName: "/xhfOpenResult",
		component: xhfOpenResultPage,
		exact: false
	},
	{
		pathName: "/xhfOpenFail",
		component: xhfOpenFailPage,
		exact: false
	},
	{
		pathName: "/xhfOpenSuccess",
		component: xhfOpenSuccessPage,
		exact: false
	},
	{
		pathName: "/xhfFacilitySuccess",
		component: xhfFacilitySuccessPage,
		exact: false
	},
	{
		pathName: "/billHome",
		component: BillHome,
		exact: false
	},
	{
		pathName: "/billList",
		component: BillList,
		exact: false
	},
	{
		pathName: "/billHistory",
		component: BillHistory,
		exact: false
	},
	{
		pathName: "/billDetail",
		component: BillDetail,
		exact: false
	},
	{
		pathName: "/billMonth",
		component: BillMonth,
		exact: false
	},
	{
		pathName: "/couponCenter", // 领券中心调整
		component: MyCoupons,
		exact: false
		// cacheRouter: true,
		// cacheKey: "couponCenter"
	},
	{
		pathName: "/activateCoupon/:id", //任务列表
		component: ActivateCoupon,
		exact: false
	},
	{
		pathName: "/couponHistory",
		component: CouponHistory,
		exact: false
	},
	{
		pathName: "/cashback",
		component: Cashback,
		exact: false,
		cacheRouter: true,
		cacheKey: "cashback"
	},
	{
		pathName: "/couponRule",
		component: CouponRule,
		exact: false
	},
	{
		pathName: "/creditScorePage",
		component: creditScorePage,
		exact: false
	},
	{
		pathName: "/xhfSetPasswordPage",
		component: xhfSetPasswordPage,
		exact: false
	},
	{
		pathName: "/xhfActiveSuccessPage",
		component: xhfActiveSuccessPage,
		exact: false
	},
	{
		pathName: "/xhfRepaymentPage/:data",
		component: xhfRepaymentPage,
		exact: false
	},
	{
		pathName: "/certification/612",
		component: certification612,
		exact: false,
		cacheRouter: true,
		cacheKey: "certification612"
	},
	{
		pathName: "/faceRecognition/612/:data",
		component: faceRecognition612,
		exact: false
	},
	{
		pathName: "/livenessRet/612",
		component: livenessRet612,
		exact: false
	},
	{
		pathName: "/openPayResults/612",
		component: openPayResults612,
		exact: false
	},
	{
		pathName: "/certification/613",
		component: certification613,
		exact: false,
		cacheRouter: true,
		cacheKey: "certification613"
	},
	{
		pathName: "/faceRecognition/613",
		component: faceRecognition613,
		exact: false
	},
	{
		pathName: "/creditExtension/616/threeElements",
		component: creditExtension_616_ThreeElements,
		exact: false,
		cacheRouter: true,
		cacheKey: "creditExtension_616_ThreeElements"
	},
	{
		pathName: "/creditExtension/616/riskControlAudit",
		component: creditExtension_616_RiskControlAudit,
		exact: false,
		cacheRouter: true,
		cacheKey: "creditExtension_616_RiskControlAudit"
	},
	{
		pathName: "/creditExtension/616/activation",
		component: creditExtension_616_Activation,
		exact: false,
		cacheRouter: true,
		cacheKey: "creditExtension_616_Activation"
	},
	{
		pathName: "/xhfCommonProblem",
		component: xhfCommonProblemPage,
		exact: false
	},
	{
		pathName: "/newbornZone",
		component: newbornZonePage,
		exact: false
	},
	{
		pathName: "/reduction",
		component: reductionPage,
		exact: false
	},
	{
		pathName: "/inviteHome",
		component: xhfInviteHome,
		exact: false
	},
	{
		pathName: "/inviteQrCode",
		component: inviteQrCode,
		exact: false
	},
	{
		pathName: "/inviteRecord",
		component: inviteRecord,
		exact: false
	},
	{
		pathName: "/rewardRecord",
		component: rewardRecord,
		exact: false
	},
	{
		pathName: "/inviteRule",
		component: inviteRule,
		exact: false
	},
	{
		pathName: "/dTwelveActivities",
		component: dTwelveActivities,
		exact: false
	},
	{
		pathName: "/xhf/credit/twoElement",
		component: xhfCreditTwoElement,
		exact: false,
		cacheRouter: true,
		cacheKey: "xhfCreditTwoElement"
	},
	{
		pathName: "/xhf/credit/threeElement",
		component: xhfCreditThreeElement,
		exact: false,
		cacheRouter: true,
		cacheKey: "xhfCreditThreeElement"
	},
	{
		pathName: "/xhf/credit/fourElement",
		component: xhfCreditFourElement,
		exact: false,
		cacheRouter: true,
		cacheKey: "xhfCreditFourElement"
	},
	{
		pathName: "/xhf/credit/liveness",
		component: xhfCreditLiveness,
		exact: false,
		cacheRouter: true,
		cacheKey: "xhfCreditLiveness"
	},
	{
		pathName: "/xhf/credit/zxAgrement",
		component: xhfCreditZxAgrement,
		exact: false,
		cacheRouter: true,
		cacheKey: "xhfCreditZxAgrement"
	},
	{
		pathName: "/payResult",
		component: payResult,
		exact: false
	},
	{
		pathName: "/jumpMiddlePage",
		component: jumpMiddlePage,
		exact: false
	}
];
export { xhfRouters };
